package com.zking.ssm.mapper;

import com.zking.ssm.model.Customer;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CustomerMapper {
    int deleteByPrimaryKey(Integer customerId);

    int insert(Customer record);

    int insertSelective(Customer record);

    Customer selectByPrimaryKey(Integer customerId);

    Customer selectByPrimaryKeyCascode(Integer customerId);

    int updateByPrimaryKeySelective(Customer record);

    int updateByPrimaryKey(Customer record);

    /**
     * 查询所以客户 以及其订单信息
     * @param customer
     * @return
     */
    List<Customer> listCustomer(Customer customer);

}